export const getUrlParams = () => {
    let search = window.location.search;
    search = search.slice(1).split('&');;
    const params = {};
    search.forEach(str=>{
        const [key,val] = str.split('=');
        params[key] = val;
    })
    return params;
}